package com.ruoyi.repayment.pojo;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 借款申请对象 loan_applyfor
 * 
 * @author ruoyi
 * @date 2022-12-12
 */

public class LoanApplyfor extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 借款用户ID */
    @Excel(name = "借款用户ID")
    private Long uid;

    /** 1、等额本息2、等额本金 */
    @Excel(name = "1、等额本息2、等额本金")
    private Long repayment;

    /** 产品ID */
    @Excel(name = "产品ID")
    private Long productId;

    /** 贷款金额 */
    @Excel(name = "贷款金额")
    private BigDecimal loansprice;

    /** 已还金额 */
    @Excel(name = "已还金额")
    private BigDecimal repaidprice;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUid(Long uid) 
    {
        this.uid = uid;
    }

    public Long getUid() 
    {
        return uid;
    }
    public void setRepayment(Long repayment) 
    {
        this.repayment = repayment;
    }

    public Long getRepayment() 
    {
        return repayment;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setLoansprice(BigDecimal loansprice) 
    {
        this.loansprice = loansprice;
    }

    public BigDecimal getLoansprice() 
    {
        return loansprice;
    }
    public void setRepaidprice(BigDecimal repaidprice) 
    {
        this.repaidprice = repaidprice;
    }

    public BigDecimal getRepaidprice() 
    {
        return repaidprice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("uid", getUid())
            .append("repayment", getRepayment())
            .append("productId", getProductId())
            .append("loansprice", getLoansprice())
            .append("repaidprice", getRepaidprice())
            .toString();
    }
}
